﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace E4D.AppFabric.Entities.Engine
{
    //This is an interemdiate factory object that is necessary to perform unit tests
    public class SessionFactory
    {
        private static ISessionFactory factory = new SessionFactoryImpl();

        public static void changeFactory(ISessionFactory newFactory)
        {
            factory = newFactory;
        }

        public static ISession getLocalSession()
        {
            return factory.getLocalSession();
        }

        public static ISession getRemoteSesion(String hostName)
        {
            return factory.getRemoteSesion(hostName);
        }

    }
}
